package com.ldu.dao.dataobject;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;

public class CartDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * This field corresponds to the database column cart.id
     */
    private Long id;

    /**
     * This field corresponds to the database column cart.user_id
     */
    private Long userId;

    /**
     * This field corresponds to the database column cart.goods_id
     */
    private Long goodsId;

    /**
     * This field corresponds to the database column cart.goods_name
     */
    private String goodsName;

    /**
     * This field corresponds to the database column cart.goods_price
     */
    private Long goodsPrice;

    /**
     * This field corresponds to the database column cart.num
     */
    private Integer num;

    /**
     * This field corresponds to the database column cart.counts
     */
    private Integer counts;

    /**
     * This field corresponds to the database column cart.total
     */
    private Long total;

    /**
     * This field corresponds to the database column cart.gmt_create
     */
    private Date gmtCreate;

    /**
     * This field corresponds to the database column cart.gmt_modified
     */
    private Date gmtModified;

    /**
     * This field corresponds to the database column cart.is_deleted
     */
    private Integer isDeleted;

	public Long getId() {
	                return id;
	    
	}

	public void setId(Long id) {
                    this.id = id;
	    
	}

	public Long getUserId() {
	                return userId;
	    
	}

	public void setUserId(Long userId) {
                    this.userId = userId;
	    
	}

	public Long getGoodsId() {
	                return goodsId;
	    
	}

	public void setGoodsId(Long goodsId) {
                    this.goodsId = goodsId;
	    
	}

	public String getGoodsName() {
	                return goodsName;
	    
	}

	public void setGoodsName(String goodsName) {
                    this.goodsName = goodsName;
	    
	}

	public Long getGoodsPrice() {
	                return goodsPrice;
	    
	}

	public void setGoodsPrice(Long goodsPrice) {
                    this.goodsPrice = goodsPrice;
	    
	}

	public Integer getNum() {
	                return num;
	    
	}

	public void setNum(Integer num) {
                    this.num = num;
	    
	}

	public Integer getCounts() {
	                return counts;
	    
	}

	public void setCounts(Integer counts) {
                    this.counts = counts;
	    
	}

	public Long getTotal() {
	                return total;
	    
	}

	public void setTotal(Long total) {
                    this.total = total;
	    
	}

	public Date getGmtCreate() {
	                 return gmtCreate == null ? null : new Date(gmtCreate.getTime());
        
	}

	public void setGmtCreate(Date gmtCreate) {
                     this.gmtCreate = gmtCreate == null ? null : new Date(gmtCreate.getTime());
        
	}

	public Date getGmtModified() {
	                 return gmtModified == null ? null : new Date(gmtModified.getTime());
        
	}

	public void setGmtModified(Date gmtModified) {
                     this.gmtModified = gmtModified == null ? null : new Date(gmtModified.getTime());
        
	}

	public Integer getIsDeleted() {
	                return isDeleted;
	    
	}

	public void setIsDeleted(Integer isDeleted) {
                    this.isDeleted = isDeleted;
	    
	}


	public static interface IField {
		
		public static final String f_id = "id";
		
		public static final String f_user_id = "userId";
		
		public static final String f_goods_id = "goodsId";
		
		public static final String f_goods_name = "goodsName";
		
		public static final String f_goods_price = "goodsPrice";
		
		public static final String f_num = "num";
		
		public static final String f_counts = "counts";
		
		public static final String f_total = "total";
		
		public static final String f_gmt_create = "gmtCreate";
		
		public static final String f_gmt_modified = "gmtModified";
		
		public static final String f_is_deleted = "isDeleted";
		
	}

    @Override
    public String toString(){
        return ReflectionToStringBuilder.toString(this, ToStringStyle.DEFAULT_STYLE);
    }
}